home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / date.z / date
Encoding:
Text File  |  1998-10-30  |  3.0 KB  |  70 lines

  1. DATE(3I)                                               Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      DDAATTEE, JJDDAATTEE - Returns the current date
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IINNTTRRIINNSSIICC DDAATTEE
  9.      DDAATTEE(())
  10.  
  11.      EEXXTTEERRNNAALL DDAATTEE
  12.      CCAALLLL DDAATTEE((_d_a_t_e))
  13.  
  14.      IINNTTRRIINNSSIICC JJDDAATTEE
  15.      JJDDAATTEE(())
  16.  
  17.      EEXXTTEERRNNAALL JJDDAATTEE
  18.      CCAALLLL JJDDAATTEE((_d_a_t_e))
  19.  
  20. IIMMPPLLEEMMEENNTTAATTIIOONN
  21.      UNICOS, UNICOS/mk, and IRIX systems
  22.  
  23. SSTTAANNDDAARRDDSS
  24.      CF90 and MIPSpro 7 Fortran 90 compiler extension to Fortran 90
  25.  
  26. DDEESSCCRRIIPPTTIIOONN
  27.      DDAATTEE and JJDDAATTEE return the current date.  DDAATTEE returns the current date
  28.      in ASCII _m_m//_d_d//_y_y format.  JJDDAATTEE returns the current Julian day-number
  29.      facsimile in ASCII _y_y_d_d_d format, left-justified and blank-filled.
  30.  
  31.      If called as intrinsic functions, DDAATTEE and JJDDAATTEE do not accept any
  32.      arguments.  The names of these intrinsics cannot be passed as
  33.      arguments.
  34.  
  35.      If called as external subprograms, they accept the following argument:
  36.  
  37.      _d_a_t_e   For DDAATTEE, _d_a_t_e is a variable containing today's date in
  38.             _m_m/_d_d/_y_y format.  For JJDDAATTEE, _d_a_t_e is today's Julian day-number
  39.             facsimile in _y_y_d_d_d format.
  40.  
  41.             The data type of _d_a_t_e depends on your platform, as follows:
  42.  
  43.             * On UNICOS or UNICOS/mk systems, it must be of type integer,
  44.               CCHHAARRAACCTTEERR**88, or real.  If _t_i_m_e is of type integer or real, it
  45.               must be of KKIINNDD==88.
  46.  
  47.             * On IRIX systems, _d_a_t_e must be declared as CCHHAARRAACCTTEERR**88.
  48.  
  49. RREETTUURRNN VVAALLUUEESS
  50.      When called as an intrinsic function, the data type of the return
  51.      value depends on your platform.  On UNICOS and UNICOS/mk systems, it
  52.      is of type Boolean.  On IRIX systems, it is of type CCHHAARRAACCTTEERR**88.
  53.  
  54. NNOOTTEESS
  55.      For Fortran 90 programs, the DDAATTEE and JJDDAATTEE intrinsic functions are
  56.      outmoded.  Refer to the _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, _V_o_l_u_m_e _3,
  57.      publication SR-3905, for information on outmoded features and their
  58.      preferred standard alternatives.
  59.  
  60.      For both DDAATTEE and JJDDAATTEE, the year will become 00 in the year 2000.
  61.  
  62.      On IRIX systems, you can use either the intrinsic function form or the
  63.      external subprogram form, but not both, in a single processing unit
  64.      (PU).
  65.  
  66. SSEEEE AALLSSOO
  67.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  68.      printed version of this man page.
  69.  
  70.